<?php
/* @var $this ZoneController */
/* @var $model Zone */
/* @var $form CActiveForm */
?>
<div class="row">
    <div class="zones_label">
	  <?php echo CHtml::link(CHtml::encode($data->nom), array('update', 'id' => $data->id)); ?>
    </div>


    <?php
    $currentMode = $data->modeid == 'auto' ? $data->getModeCourant()->id : '';

//echo "currentmode=".$currentMode."<br/>";

    $this->widget('ModeButtons', array(
	  'model' => $data,
	  'attribute' => '[' . ($data->id) . ']modeid',
	  'updateOnClick' => true,
	  'options' => array('currentMode' => $currentMode),
    ));
    ?>

</div>
